<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<script type="text/javascript">
	$(function() {
		changePipetype("${pipeType}");
	});

	function changePipetype(type) {
		if (type == "2") {
			$("div[name='tlq']").css("display", "");
			$("div[name='ftp']").css("display", "none");
			$("#divport").css("display", "");
		} else if (type == "0") {
			$("div[name='tlq']").css("display", "none");
			$("div[name='ftp']").css("display", "");
			$("#divport").css("display", "");
		} else {
			$("div[name='tlq']").css("display", "none");
			$("div[name='ftp']").css("display", "none");
			$("#divport").css("display", "none");
		}
	}
</script>
<c:set var="vo" value="${_data}" />
<div class="table-responsive">
	<div class="row">
		<div class="col-xs-12">
			<div class="widget-box">
				<div class="widget-body">
					<div class="widget-main">
						<div class="profile-user-info profile-user-info-striped">
							<div class="profile-info-row">
								<div class="profile-info-name">交换通道</div>
								<div class="profile-info-value">
									<span class="editable"> ${pipeTypeText }&nbsp;</span>
								</div>
							</div>
							<div class="profile-info-row" name="tlq" style="display: none;">
								<div class="profile-info-name">jndi地址</div>
								<div class="profile-info-value">
									<span class="editable">${jndiUrl }&nbsp;</span>
								</div>
							</div>
							<div class="profile-info-row" name="ftp" style="display: none;">
								<div class="profile-info-name">ip</div>
								<div class="profile-info-value">
									<span class="editable"> ${ip }&nbsp;</span>
								</div>
							</div>
							<div class="profile-info-row" id="divport" style="display: none;">
								<div class="profile-info-name">端口</div>
								<div class="profile-info-value">
									<span class="editable"> ${port }&nbsp;</span>
								</div>
							</div>
							<div class="profile-info-row" name="ftp" style="display: none;">
								<div class="profile-info-name">根目录</div>
								<div class="profile-info-value">
									<span class="editable"> ${dir }&nbsp;</span>
								</div>
							</div>
							<div class="profile-info-row" name="ftp" style="display: none;">
								<div class="profile-info-name">管理员用户名</div>
								<div class="profile-info-value">
									<span class="editable"> ${ username}&nbsp;</span>
								</div>
							</div>
							<div class="profile-info-row">
								<div class="profile-info-name">修改时间</div>
								<div class="profile-info-value">
									<span class="editable">${si:fmtDate(vo.mtime)}&nbsp;</span></div>
							</div>
							<div class="profile-info-row">
								<div class="profile-info-name">备注</div>
								<div class="profile-info-value">
									<span class="editable"> ${vo.remark }&nbsp;</span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>